<?php

class MapModel extends AbstractModel
{
    protected $_user;    

    protected function _init()
    {
	
    }
    
    public function setUser($user)
    {
	$this->_user = $user;
    }
    
    public function getUser()
    {
	return $this->_user;
    }
    public function getAddress()
    {
	if ($this->getDbData('address')) {
	    return $this->getDbData('address');
	}
	return implode(', ', array(
	    $this->getDbData('latitude'), $this->getDbData('longitude'),
	));
    }
    
    

}